<?php

// $Id$


require_once($WSC->get_site_inc_dir().'modules/tangra_cms/_sys/tcms_admin_page_w_fctrl_ua.class.php');
require_once($WSC->get_site_inc_dir().'modules/tangra_cms/forms/_menu/menu_type/menu_type_form_ctrl.class.php');


class Menu_Type_Edit_WP extends TCMS_Admin_Page_W_FCtrl_UA {
	public function create_view($name = 'default') {
		$ret = new TCMS_Admin_Page_View($this, $name, 'modules/tangra_cms/pages/_menu/');

		return $ret;
	}


	protected function create_form_ctrl() {
		$dbc = $this->get_dbc();
		$tvm = $this->get_tvm();

		$ret = new Menu_Type_Form_Ctrl('menu_type', $tvm, $dbc, 'obj_id', $this->_config->get_htdocs_dir(), $this->_config->get_hidden_dir().'inc/');

		return $ret;
	}
}
